package com.siyougame.app;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 微信用户实体
 * 表名 wx_user
 *
 * @author lvliangjun
 * @email
 * @date 2020-07-15 19:51:18
 */
@Data
@TableName("wx_user")
public class WxUserEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 公众号openid
     */
    private String gzhOpenid;
    /**
     * unionid
     */
    private String unionid;
    /**
     * 小程序openid
     */
    private String xcxOpenId;
    /**
     * 微信昵称
     */
    private String nickname;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 国家
     */
    private String country;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 头像
     */
    private String headimgurl;
    /**
     * 电话
     */
    private String mobile;
    /**
     * 0关闭1开启
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     *
     */
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private String description;



}
